body, html {
    width: 100%;
    height: 100%;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

* {
    box-sizing: inherit;
}

img {
    width: 100%;
}

a {
    text-decoration: none;
}

.logo {
    display: inline-block;
    margin-top: 40px;
    margin-left: 10%;
}

.form {
    padding: 28px 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 350px;
    min-height: 400px;
    width: 50%;
    max-width: 600px;
    background: linear-gradient(248deg, rgba(16,58,132,1) 8%, rgba(75,127,219,1) 81%);
    border-radius: 5px;
}

.title {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.form-div {
    margin: 35px 0;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.form-subdiv {
    max-width: 250px;
    width: 40%;
}

.input:not(:last-child) {
    margin-bottom: 15px;
}

.input-p, label {
    display: block;
    padding-bottom: 6px;
    color: #fff;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
}

.form-div input {
    width: 100%;
    border: none;
    border-radius: 5px;
    padding: 10px 13px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.line {
    position: relative;
    display: block;
    width: 3px;
    margin: 0 25px;
    background: #ffffff50;
    border-radius: 10px;
}

.buttons {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn {
    width: 100%;
    padding: 13px;
    color: #fff;
    background: #000;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

.register {
    margin-top: 10px;
    color: #fff;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

.error {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: red;
    animation: error 2s ease-in 3; 
}

.errorlist {
    list-style: none;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: red;
}

@keyframes error {
    0% {opacity: 1;}
    50% {opacity: 0;}
    100% {opacity: 1;}
}

/* for token_page.html */

.token {
    padding: 28px 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 350px;
    background: linear-gradient(248deg, rgba(16,58,132,1) 8%, rgba(75,127,219,1) 81%);
    border-radius: 5px;
}

.form-div-token {
    margin: 35px 0;
    width: 100%;
}

.form-div-token input {
    width: 100%;
    border: none;
    border-radius: 5px;
    padding: 10px 13px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
}

/*  for login.html  */

.form-login {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    width:  auto;
}

.form-login > .buttons {
    margin: 0;
}

.form-div-login {
    display: block;
}

.form-div-login div:not(:last-child) {
    margin-bottom: 15px;
}